import request from '@/utils/request'

// 操作日志管理接口
export const operLogApi = {
  // 获取操作日志列表
  getList(params) {
    return request({
      url: '/monitor/operLog/list',
      method: 'get',
      params
    })
  },
  
  // 删除操作日志
  deleteOperLog(ids) {
    return request({
      url: `/monitor/operLog/${ids}`,
      method: 'delete'
    })
  },
  
  // 清空操作日志
  cleanOperLog() {
    return request({
      url: '/monitor/operLog/clean',
      method: 'delete'
    })
  }
}

// 登录日志管理接口
export const loginLogApi = {
  // 获取登录日志列表
  getList(params) {
    return request({
      url: '/monitor/loginLog/list',
      method: 'get',
      params
    })
  },
  
  // 删除登录日志
  deleteLoginLog(ids) {
    return request({
      url: `/monitor/loginLog/${ids}`,
      method: 'delete'
    })
  },
  
  // 清空登录日志
  cleanLoginLog() {
    return request({
      url: '/monitor/loginLog/clean',
      method: 'delete'
    })
  }
}

// 异常日志管理接口
export const exceptionLogApi = {
  // 获取异常日志列表
  getList(params) {
    return request({
      url: '/monitor/exceptionLog/list',
      method: 'get',
      params
    })
  },
  
  // 删除异常日志
  deleteExceptionLog(ids) {
    return request({
      url: `/monitor/exceptionLog/${ids}`,
      method: 'delete'
    })
  },
  
  // 清空异常日志
  cleanExceptionLog() {
    return request({
      url: '/monitor/exceptionLog/clean',
      method: 'delete'
    })
  }
} 